package com.rabbit.produce.controller;

import com.rabbit.produce.entrty.User;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
//@RabbitListener(queues = "hello")
public class HelloReceiver {
 
    @RabbitHandler
    public void process(User user) {
        System.out.println("Receiver2  : " + user);
    }
 
}
